﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Resources;
using PokeData;

namespace PokeTD_MapEditor
{
    public partial class NeueMap : Form
    {
        public NeueMap()
        {
            InitializeComponent();
        }

        private string _mapName;
        private int _money;

        private int _mapWidth;
        private int _mapHeight;
        

        public int MapWidth {
            get { return _mapWidth; }
            set { _mapWidth = value; }
        }
        public int MapHeight {
            get { return _mapHeight; }
            set { _mapHeight = value; }
        }

        public string MapName {
            get { return _mapName; }
            set { _mapName = value; }
        }
        public int Money {
            get { return _money; }
            set { _money = value; }
        }
        private void NeueMap_Load(object sender, EventArgs e) {

        }

        private void btnOK_Click(object sender, EventArgs e) {
            _mapName = txtName.Text;
            try {
                _money = Int32.Parse(txtMoney.Text);
            } catch (Exception ex) {
                _money = 0;
            }
            _mapWidth = (int)nudX.Value;
            _mapHeight = (int)nudY.Value;
            this.Close();
        }

        private void label4_Click(object sender, EventArgs e) {

        }

        private void nudX_ValueChanged(object sender, EventArgs e) {

        }
    }
}
